home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Tech Arsenal 1
/
Tech Arsenal (Arsenal Computer).ISO
/
tek-01
/
wlib11_2.zip
/
EXAMPLES.EXE
/
EXAM25.C
< prev
next >
Wrap
C/C++ Source or Header
|
1991-03-13
|
552b
|
22 lines
#include "window.h"
#define NORM CREATE_VIDEO_ATTRIBUTE(black,white)
WPOINTER w;
int i;
main()
{
WindowInitializeSystem();
WindowSaveInitial(0);
w = WindowInitialize(BORDER,1,1,20,10,NORM,NORM,SINGLEBOX);
WindowOpen(w);
WindowDisplay(w,1,NOEFFECT);
GET_KEY();
/* Specify row 0 to write on */
WindowWriteCenterString(w,"This is a title",0);
/* Now write title on bottom by using the height structure member */
WindowWriteCenterString(w,"This is a title",w->height + 1);
}